package com.hopu.pyq.dao;

import com.hopu.pyq.entity.Zan;
import org.apache.ibatis.annotations.Param;

public interface ZanDAO {

    /**
     * 通过用户id和朋友圈id查询点赞记录
     * @param userId
     * @param pyqId
     * @return
     */
    Zan selectZanByUserIdAndPyqId(@Param("userId") Integer userId,@Param("pyqId") Integer pyqId);

    /**
     * 添加点赞
     * @param zan
     */
    void insertZan(Zan zan);
}
